package com.kai.mqtt.enums;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.experimental.FieldDefaults;

/**
 * @author weijk
 * @since 2024/7/1
 */
@Getter
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@FieldDefaults(level = AccessLevel.PRIVATE, makeFinal = true)
public enum ErrorCodeEnum {

    SUCCESS(20000, "ok"),

    BASE_ERROR(50000, "当前系统异常，请稍后再试"),

    PARAMETER_ERROR(10000, "参数错误或数据异常"),

    TOKEN_ERROR(40000, "token 异常"),
    NO_PERMISSION(40003, "无权限"),

    USER_DOES_NOT_EXIST(11000, "用户不存在"),
    USERNAME_OR_PASSWORD_ERROR(12000, "用户名或密码错误");

    int code;
    String msg;

}
